import request from '@/untils/request'
export const faburenwu=(data)=>{
    return request({
      url:`insertAnct`,
      method:"post",
      data
    })
  }
  export const selectAnct=(num)=>{
    return request({
      url:`selectAnct?num=`+num,
      method:"post",
    })
  }
  export const selectAnctBy=(title,state,publishUnit,userPublish,test)=>{
    return request({
      url:`selectAnctBy?title=${title}&state=${state}&publishUnit=${publishUnit}&userPublish=${userPublish}&test=${test}`,
      method:"post",
    })
  }
  export const updateAnctBy=(data)=>{
    return request({
      url:`updateAnctBy`,
      method:"post",
      data
    })
  }
  export const updateAnctByState=(id,num,value)=>{
    return request({
      url:`updateAnctByState?id=${id}&num=${num}&value=${value}`,
      method:"post",
    })
  }
  export const selectAnnouncementCountByState=(state)=>{
    return request({
      url:`selectAnnouncementCountByState?state=${state}`,
      method:"post",
    })
  }
  export const selectAnctOne=(id)=>{
    return request({
      url:`selectAnctOne?id=${id}`,
      method:"post",
    })
  }
  export const selectFaBu=()=>{
    return request({
      url:`selectFaBu`,
      method:"post",
    })
  }